import request from '@/request/index.js';

export function getNewsTags(params) {
	return request.get({
		url: '/app-api/information/app-patient-special-column-journalism/tags',
		params: params || {},
		custom: {
			title: "获取资讯类型",
			authentication: true
		}
	});
}

export function getHotNewsList(params) {
	return request.get({
		url: '/app-api/information/app-patient-special-column-journalism/hotArticle',
		params: params || {},
		custom: {
			title: "获取热点资讯列表",
			authentication: true
		}
	});
}

export function praiseNews(params) {
	return request.post({
		url: '/app-api/information/app-patient-special-column-journalism/informationLike',
		params: params || {},
		custom: {
			title: "资讯点赞",
			authentication: true
		}
	});
}

export function submitNewsCollect(params) {
	return request.post({
		url: '/app-api/information/app-patient-special-column-journalism/informationCollect',
		params: params || {},
		custom: {
			title: "资讯收藏",
			authentication: true
		}
	});
}

export function getNewsCollectList(params) {
	return request.get({
		url: '/app-api/information/app-patient-special-column-journalism/get-journalism-collect',
		params: params || {},
		custom: {
			title: "获取资讯收藏列表",
			authentication: true
		}
	});
}

export function getNewsDetails(params) {
	return request.get({
		url: '/app-api/information/app-patient-special-column-journalism/article-detail',
		params: params || {},
		custom: {
			title: "获取资讯详情",
			authentication: true
		}
	});
}

export function getNewsList(params) {
	return request.get({
		url: '/app-api/information/app-patient-special-column-journalism/getSpecialColumnPage',
		params: params || {},
		custom: {
			title: "获取资讯列表",
			authentication: true
		}
	});
}

export function submitNewsEvaluate(data) {
	return request.post({
		url: '/app-api/information/app-patient-special-column-journalism/comment-create',
		data: data || {},
		custom: {
			title: "资讯评论",
			authentication: true
		}
	});
}

export function getNewsEvaluateList(params) {
	return request.get({
		url: '/app-api/information/app-patient-special-column-journalism/get-column-comment-page',
		params: params || {},
		custom: {
			title: "获取资讯评论列表",
			authentication: true
		}
	});
}

export function getMyNewsEvaluateList(params) {
	return request.get({
		url: '/app-api/information/app-patient-special-column-journalism/get-my-comment-page',
		params: params || {},
		custom: {
			title: "获取我的资讯评论列表",
			authentication: true
		}
	});
}

export function getDoctorNewsList(params) {
	return request.get({
		url: '/app-api/information/app-patient-special-column-journalism/getArticleList',
		params: params || {},
		custom: {
			title: "获取医生资讯列表",
			authentication: true
		}
	});
}


export function buyNewsSpecialColumn(params) {
	return request.post({
		url: '/app-api/information/app-patient-special-column-journalism/create-special-colum-order',
		params: params || {},
		custom: {
			title: "购买专栏",
			authentication: true
		}
	});
}

export function buyNews(params) {
	return request.post({
		url: '/app-api/information/app-patient-special-column-journalism/create-buy-information-order',
		params: params || {},
		custom: {
			title: "购买资讯",
			authentication: true
		}
	});
}
// 获取专栏类型
export function getNewsTabList(params) {
	return request.get({
		url: '/app-api/information/app-patient-special-column-journalism/get-special-column-class',
		params: params || {},
		custom: {
			title: "获取专栏类型",
			authentication: true
		}
	});
}